package com.xsp.service.Impl;

import com.xsp.dao.BookInfoMapper;
import com.xsp.entity.BookInfo;
import com.xsp.service.BookInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author xsp
 * @date 2024/1/17
 * @desc
 */
@Service("bookInfoService")
public class BookInfoServiceImpl implements BookInfoService {
    @Resource
    private BookInfoMapper bookInfoMapper;

    @Override
    public void addBook(BookInfo bookInfo) {
        bookInfoMapper.insert(bookInfo);
        System.out.println("执行了BookInfoServiceImpl的addBook()");
    }
}
